package com.gxs.spring5.autowire;

/**
 * @author 桂贤松
 * @date 2022/1/24
 */
public class Emp {
    private Dept dept;
    public void setDept(Dept dept) {
        this.dept = dept;
    }
    @Override
    public String toString() {
        return "Emp{" +
                "dept=" + dept +
                '}';
    }
    public void print(){
        System.out.println(dept);
    }
}
